package com.willpower.vueshop.controller;

import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: wen-yi;
 * @date: 2021/11/2 9:17;
 * @Description: 目前无法配合vue前端 执行登录 只好先模拟 测试接口 继续学vue
 */
@Slf4j
@RestController
@RequestMapping("/api")
public class ApiController {
    @RequestMapping("/login")
    public Object test(@RequestBody JSONObject json){
        log.info("测试跨域问题");
        return json;
    }
}
